package com.hdoit.apollo.logical.purchase.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.hdoit.apollo.logical.cargo.model.Cargo;
import com.hdoit.apollo.logical.cargo.model.Collocation;
import com.hdoit.apollo.logical.stock.model.StockCollocation;
import com.tennetcn.data.message.ModelBase;
/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年05月23日 10:58:31
 * @comment
 */
@Entity
@Table(name="billing_purchase_collocation")
public class PurchaseCollocation extends ModelBase{
    /**
     *主键
     */
    @Id
    @Column(name="id")
    private String id;

    /**
     *货品主表id
     */
    @Column(name="cargoId")
    private String cargoId;

    /**
     *货品子表id
     */
    @Column(name="collocationId")
    private String collocationId;
    
    @Column(name="purchaseId")
    private String purchaseId;

    /**
     *采购数量
     */
    @Column(name="purchaseNumber")
    private Double purchaseNumber;

    /**
     *采购价格
     */
    @Column(name="purchasePrice")
    private Double purchasePrice;
    
    //已入库数量
    @Column(name="inStockNum")
    private Double inStockNum;

    
    //剩余退货数量,关联采购退货=入库数量-已退货数量
    @Column(name="surplusNum")
    private Double surplusNum;
    
    //可分配数
    @Column(name="allotmentNum")
    private Double allotmentNum;
    /**
     *门店
     */
    @Column(name="shopId")
    private String shopId;
    
    //项目明细使用状态
    @Column(name="collocationState")
    private String collocationState;
    
    
    @Column(name="collocationNo")
    private String collocationNo;
    
    @Column(name="unit")
    private String unit;
    
    @Column(name="ratio")
    private Double ratio;
    
    @Column(name="cargoNo")
    private String cargoNo;
    
    @Column(name="cargoName")
    private String cargoName;
    
    @Column(name="propertyNameOne")
    private String propertyNameOne;
    
    @Column(name="propertyNameTwo")
    private String propertyNameTwo;
    
    @Transient
    private Collocation collocation;
    
    @Transient
    private StockCollocation stockCollocation;
    
    
    @Transient
    private Cargo cargo;
    
    @Transient
    private String purchaseNo;
    
    @Transient
    private String supplierName;
    
    @Transient
    private Date purchaseDate;
    
    @Transient
    private String propertyName;
    
    @Transient
    private Double subtotal;
    
    @Transient
    private String purchaseName;
    
    //暂时使用数据
    @Transient
    private Double num;
    
    /**
     *备注
     */
    @Column(name="comment")
    private String comment;

    /**
     *创建时间
     */
    @Column(name="createDate")
    private Date createDate;

    /**
     *创建人
     */
    @Column(name="createUserId")
    private String createUserId;

    /**
     *创建人名称
     */
    @Column(name="createUserName")
    private String createUserName;

    /**
     *修改时间
     */
    @Column(name="modifyDate")
    private Date modifyDate;

    /**
     *修改人
     */
    @Column(name="modifyUserId")
    private String modifyUserId;

    /**
     *修改人名称
     */
    @Column(name="modifyUserName")
    private String modifyUserName;

    /**
     *删除标记
     */
    @Column(name="deleteMark")
    private Integer deleteMark;
    
    public Double getNum() {
		return num;
	}
	public void setNum(Double num) {
		this.num = num;
	}
	public Double getAllotmentNum() {
		return allotmentNum;
	}
	public void setAllotmentNum(Double allotmentNum) {
		this.allotmentNum = allotmentNum;
	}
	public String getCollocationState() {
		return collocationState;
	}
	public void setCollocationState(String collocationState) {
		this.collocationState = collocationState;
	}
	public Double getSurplusNum() {
		return surplusNum;
	}
	public void setSurplusNum(Double surplusNum) {
		this.surplusNum = surplusNum;
	}
	public Cargo getCargo() {
		return cargo;
	}
	public void setCargo(Cargo cargo) {
		this.cargo = cargo;
	}
	public Collocation getCollocation() {
		return collocation;
	}
	public void setCollocation(Collocation collocation) {
		this.collocation = collocation;
	}
	public String getId(){
        return this.id;
    }
    public void setId(String id){
         this.id=id;
    }

    public String getPurchaseId() {
		return purchaseId;
	}
	public void setPurchaseId(String purchaseId) {
		this.purchaseId = purchaseId;
	}
	public String getCargoId(){
        return this.cargoId;
    }
    public void setCargoId(String cargoId){
         this.cargoId=cargoId;
    }

    public String getCollocationId(){
        return this.collocationId;
    }
    public void setCollocationId(String collocationId){
         this.collocationId=collocationId;
    }

  

    public Double getPurchaseNumber() {
		return purchaseNumber;
	}
	public void setPurchaseNumber(Double purchaseNumber) {
		this.purchaseNumber = purchaseNumber;
	}
	public Double getPurchasePrice(){
        return this.purchasePrice;
    }
    public void setPurchasePrice(Double purchasePrice){
         this.purchasePrice=purchasePrice;
    }

    public String getShopId(){
        return this.shopId;
    }
    public void setShopId(String shopId){
         this.shopId=shopId;
    }

    public String getComment(){
        return this.comment;
    }
    public void setComment(String comment){
         this.comment=comment;
    }

    public Date getCreateDate(){
        return this.createDate;
    }
    public void setCreateDate(Date createDate){
         this.createDate=createDate;
    }

    public String getCreateUserId(){
        return this.createUserId;
    }
    public void setCreateUserId(String createUserId){
         this.createUserId=createUserId;
    }

    public String getCreateUserName(){
        return this.createUserName;
    }
    public void setCreateUserName(String createUserName){
         this.createUserName=createUserName;
    }

    public Date getModifyDate(){
        return this.modifyDate;
    }
    public void setModifyDate(Date modifyDate){
         this.modifyDate=modifyDate;
    }

    public String getModifyUserId(){
        return this.modifyUserId;
    }
    public void setModifyUserId(String modifyUserId){
         this.modifyUserId=modifyUserId;
    }

    public String getModifyUserName(){
        return this.modifyUserName;
    }
    public void setModifyUserName(String modifyUserName){
         this.modifyUserName=modifyUserName;
    }

    public Integer getDeleteMark(){
        return this.deleteMark;
    }
    public void setDeleteMark(Integer deleteMark){
         this.deleteMark=deleteMark;
    }
	public Double getInStockNum() {
		return inStockNum;
	}
	public void setInStockNum(Double inStockNum) {
		this.inStockNum = inStockNum;
	}
	public StockCollocation getStockCollocation() {
		return stockCollocation;
	}
	public void setStockCollocation(StockCollocation stockCollocation) {
		this.stockCollocation = stockCollocation;
	}
	public String getPurchaseNo() {
		return purchaseNo;
	}
	public void setPurchaseNo(String purchaseNo) {
		this.purchaseNo = purchaseNo;
	}
	public String getSupplierName() {
		return supplierName;
	}
	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}
	public Date getPurchaseDate() {
		return purchaseDate;
	}
	public void setPurchaseDate(Date purchaseDate) {
		this.purchaseDate = purchaseDate;
	}
	public String getPropertyName() {
		return propertyName;
	}
	public void setPropertyName(String propertyName) {
		this.propertyName = propertyName;
	}
	public Double getSubtotal() {
		return subtotal;
	}
	public void setSubtotal(Double subtotal) {
		this.subtotal = subtotal;
	}
	public String getCollocationNo() {
		return collocationNo;
	}
	public void setCollocationNo(String collocationNo) {
		this.collocationNo = collocationNo;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public String getCargoNo() {
		return cargoNo;
	}
	public void setCargoNo(String cargoNo) {
		this.cargoNo = cargoNo;
	}
	public String getCargoName() {
		return cargoName;
	}
	public void setCargoName(String cargoName) {
		this.cargoName = cargoName;
	}
	public String getPropertyNameOne() {
		return propertyNameOne;
	}
	public void setPropertyNameOne(String propertyNameOne) {
		this.propertyNameOne = propertyNameOne;
	}
	public String getPropertyNameTwo() {
		return propertyNameTwo;
	}
	public void setPropertyNameTwo(String propertyNameTwo) {
		this.propertyNameTwo = propertyNameTwo;
	}
	public Double getRatio() {
		return ratio;
	}
	public void setRatio(Double ratio) {
		this.ratio = ratio;
	}
	public String getPurchaseName() {
		return purchaseName;
	}
	public void setPurchaseName(String purchaseName) {
		this.purchaseName = purchaseName;
	}

}